import jwt_decode from "jwt-decode"
import store from "../store"

export function get_user_name() {
  var token = store.getters.getToken
  if (token == "" || token == null || token == undefined) {
    return ""
  }
  var decoded_token = jwt_decode(token)
  return decoded_token["jwt_data"]["user_name"]
}
